package com.guoxin.chapter4.reentractlock.trylockparam;

public class Run {
	public static void main(String[] args) {
		final Service service = new Service();
		Runnable runnable = new Runnable() {
			public void run() {
				System.out.println(Thread.currentThread().getName() + " 调用waitMehtod时间：" + System.currentTimeMillis());
				service.waitMethod();
			}
		};

		new Thread(runnable, "A").start();
		new Thread(runnable, "B").start();
	}
}
